Skip to main content
Refunds the payments of a fulfilled order for the authenticated customer. Only the tenders change (REFUNDED); the order status and fulfillment_status stay as they are, so no webhook is sent to the POS. Only orders that are already fulfilled, and whose resolved_at is within the last 24 hours, can be refunded from Storefront. Calling it again answers 200 with the order.
Requires a Storefront API access token from Token exchange.
In @fire-spark/storefront, call order.refund(): it checks the order is delivered, voids the device charges and calls this endpoint with type: "REFUND". order.refundOrder() still calls it without a body.
Unfulfilled orders cannot be refunded here. Cancel them with Cancel order before fulfillment.

Path parameters

Request body

Optional, same fields as Cancel order. type can only be REFUND. A reported REVERSED tender ends REFUNDED.

Request

Response

Returns 200 with the order and its refunded tenders.

Error responses